'use strict';
exports.main = async (event, context) => {
	//event为客户端上传的参数
	console.log('event : ', event)
	let obj = {
		"maintenance": false,
		"maintenanceTime": 60000,
		"maintenanceReason": "预计恢复时间：2025-06-04 20:00:00",
		"maintenanceTitle": "系统维护中"
	}
	//获取当前设备版本号
	const appVersion = context.appWgtVersion
	//设置某个版本不弹系统维护框
	if(appVersion == ''){
		obj.maintenance = false
	}
	//返回数据给客户端
	return obj
};
